﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MINERP.FactoryGrid
{
    public partial class FrmSelSubArea : Form
    {
        public FrmSelSubArea()
        {
            InitializeComponent();
            comboBox1.SelectedIndex = 0;
        }
        /// <summary>
        /// 选择的分区
        /// </summary>
        public int SelectedSubAreaType { get; set; }

        private void btnOK_Click(object sender, EventArgs e)
        {
            if (comboBox1.SelectedIndex==0)
            {
                SelectedSubAreaType = 3;//车间合册
            }
            else if (comboBox1.SelectedIndex==1)
            {
                SelectedSubAreaType = 4;//内部返单分区
            }
            else
            {
                SelectedSubAreaType = 0;
            }
            this.DialogResult = DialogResult.OK;

        }   
    }
}
